package routers

import (
	"gitee.com/liuziloong/ga1400gateway/controllers"
	"github.com/astaxie/beego"
)

func init() {
	ns := beego.NewNamespace("/VIID",
		//人脸资源
		beego.NSRouter("/Faces", &controllers.ImageController{}, "post:Faces"),
		//人员资源
		beego.NSRouter("/Persons", &controllers.ImageController{}, "post:Persons"),
		beego.NSNamespace("/System",
			//注册资源
			beego.NSRouter("/Register", &controllers.SystemController{}, "post:Register"),
			//保活资源
			beego.NSRouter("/Keepalive", &controllers.SystemController{}, "post:Keepalive"),
			//系统时间资源
			beego.NSRouter("/Time", &controllers.SystemController{}, "get:Time"),
		),
	)
	beego.AddNamespace(ns)
}
